

import { getRequest, postRequest } from '@/lib/axios';
import { PAYCHANNEL, PAYCHANNELADD, PAYCHANNELUPDATE, PAYCHANNELDEL, PAYCHANNELHIDE } from '@/config/api-constant/moby'

// 获取支付订单列表
export const payChannelListApi = (param) => {
    return getRequest(PAYCHANNEL, param)
}

// 添加支付渠道
export const payChannelAddApi = (param) => {
    return postRequest(PAYCHANNELADD, param)
}


//更新支付渠道
export const payChannelUpdateApi = (param) => {
    return postRequest(PAYCHANNELUPDATE, param)
}

// 删除支付渠道
export const payChannelDelApi = (param) => {
    return postRequest(PAYCHANNELDEL, param)
}

// 支付渠道生不生效
export const payChannelHideApi = (param) => {
    return postRequest(PAYCHANNELHIDE, param)
}